<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdSaleOrderCustAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{sdSaleOrderCustAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Sale Order Cust Addr"/>

	<ui:define name="header">
		Sd Sale Order Cust Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdSaleOrderCustAddrBean.id}">
				Edit existing Sd Sale Order Cust Addr
			</c:when>
			<c:otherwise>
				Create a new Sd Sale Order Cust Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddr01" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSdSaleOrder" value="Sd Sale Order:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdSaleOrderBean.converter}" id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSdSaleOrder" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.sdSaleOrder}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdSaleOrderBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSdSaleOrder" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddrType" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrNo" value="So Cust Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrNo" maxLength="20" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrNo}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMoo" value="So Cust Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMoo" maxLength="10" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrMoo}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrSoi" value="So Cust Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrSoi" maxLength="100" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrSoi}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoad" value="So Cust Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoad" maxLength="100" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrRoad}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrBuilding" value="So Cust Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrBuilding" maxLength="100" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrBuilding}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFloor" value="So Cust Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFloor" maxLength="50" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrFloor}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoom" value="So Cust Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoom" maxLength="50" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrRoom}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrName01" value="So Cust Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrName01" maxLength="100" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrName01}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPostcode" value="So Cust Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPostcode" maxLength="20" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrPostcode}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPhoneNo" value="So Cust Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPhoneNo" maxLength="20" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrPhoneNo}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFaxNo" value="So Cust Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFaxNo" maxLength="20" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrFaxNo}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMobileNo" value="So Cust Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMobileNo" maxLength="20" value="#{sdSaleOrderCustAddrBean.sdSaleOrderCustAddr.soCustAddrMobileNo}"/>
					<h:message for="sdSaleOrderCustAddrBeanSdSaleOrderCustAddrSoCustAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdSaleOrderCustAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdSaleOrderCustAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdSaleOrderCustAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdSaleOrderCustAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>